package com.csun.cmny.provider.model.domain;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "cn_dmc_csun_gateway_location")
public class DmcCsunGatewayLocation {
    /**
     * 设备Id
     */
    @Id
    @Column(name = "device_id")
    private Long deviceId;

    /**
     * 0-自定义, 1-人, 2-床, 3-房间
     */
    @Column(name = "bind_type")
    private Integer bindType;

    /**
     * PERSONAL - 个人, ENTERPRISE - 企业
     */
    @Column(name = "bind_way")
    private String bindWay;

    /**
     * 老人Id
     */
    @Column(name = "oldman_id")
    private Integer oldmanId;

    /**
     * 老人姓名
     */
    @Column(name = "oldman_name")
    private String oldmanName;

    /**
     * 床位Id
     */
    @Column(name = "bed_id")
    private Integer bedId;

    /**
     * 床位Id
     */
    @Column(name = "room_id")
    private Integer roomId;

    /**
     * 绑定位置
     */
    private String location;

    /**
     * 创建人
     */
    private String creator;

    /**
     * 创建人ID
     */
    @Column(name = "creator_id")
    private Long creatorId;

    /**
     * 创建时间
     */
    @Column(name = "created_time")
    private Date createdTime;
}